package com.water.mapper;

import com.water.entity.WaterUsage;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface WaterUsageMapper {

    /**
     * 查询用户使用量
     * @param userId
     * @return
     */
    @Select("select * from water_usage where user_id=#{userId}")
    WaterUsage getInfo(Long userId);
}
